package com.kws.tool.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author : zhangbenting
 * @date : 2024/10/22 16:48
 * @Version: 1.0
 */
@TableName(value = "tb_tool_collect")
@Data
public class CollectEntity implements Serializable {

    /**
     * 主键id
     */
    @TableId(value = "collect_id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键id")
    private Long collectId;

    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    private Long userId;

    /**
     * 收藏类型ID
     */
    @ApiModelProperty("收藏类型ID")
    private Long collectTypeId;

    /**
     * 收藏类型(0:政策,1:标准)
     */
    @ApiModelProperty("收藏类型(0:政策,1:标准)")
    private String collectType;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
